home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000055_icon-group-sender _Tue Feb 27 10:33:51 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
2KB
Received: by cheltenham.cs.arizona.edu; Tue, 27 Feb 1996 12:23:41 MST
Date: Tue, 27 Feb 1996 10:33:51 -0600
Message-Id: <199602271633.KAA00683@ns1.computek.net>
Mime-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
From: gep2@computek.net
Subject: Icon replacement for a perl script?
To: icon-group@cs.arizona.edu
X-Mailer: SPRY Mail Version: 04.00.06.17
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
>...I've got a perl script which takes a list of filenames, and processes
each one to find out which filter to use on the file (depending on a regexp
match on the filename). Then it processes each file in turn, with the
appropriate filters (and some default ones that are always applied), to
create two new ones (a local copy, and a remote one).
>Since this takes a while (~11 minutes for 1158 files), and a ridiculous
amount of memory (it peaks at about 16M of swap :-), I was wondering if
it might be easier/faster/more memory efficient to do this in icon?
It is LUDICROUS to have to do that much swapping for a situation like this,
where even Vanilla SNOBOL would comfortably do the same job in less than 100K of
memory space, total.
>The most complicated replacement is
&title;some text here => <head><title>some text here</title>
Clearly pretty trivial stuff. Either Icon or SNOBOL4 would be a better choice.
PERL is really *only* interesting, IMHO, if you don't have access to anything
better.
>Does anyone have any suggestions? Any help gratefully appreciated
(especially by the drive my swap space is on :-)
Get yourself a copy of Icon, and/or SNOBOL4, and throw PERL away.
Gordon Peterson
http://www.computek.net/public/gep2/